/*
 * @Author: error: git config user.name && git config user.email & please set dead value or install git
 * @Date: 2022-10-26 15:01:35
 * @LastEditors: error: git config user.name && git config user.email & please set dead value or install git
 * @LastEditTime: 2022-10-26 15:32:47
 * @FilePath: \MDK-ARMe:\weijiProject\AD8232\Hardwear\ad8232.h
 * @Description: ����Ĭ������,������`customMade`, ��koroFileHeader�鿴���� ��������: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE8283
 */
#ifndef __AD8232_H_
#define __AD8232_H_
#include "stm32g4xx.h"
#include "adc.h"
#include "dma.h"
#include "usart.h"
#include "gpio.h"

extern uint32_t ADC1_IN2;
extern int32_t ADC1_IN2_dx;
extern int32_t ADC1_IN2_err;

void AD8232_OLED_DrawLine();
void AD8232_USB_DrawLine();
void AD8232_UART_DrawLine();
void AD8232_GetValue();

#define AD8232_LOD HAL_GPIO_ReadPin(AD8232_LOD_GPIO_Port, AD8232_LOD_Pin)
#define AD8232_LOP HAL_GPIO_ReadPin(AD8232_LOP_GPIO_Port, AD8232_LOP_Pin)

#endif
